package com.howei.service.impl;

import com.howei.mapper.DataSummaryMapper;
import com.howei.pojo.InverterStatus;
import com.howei.pojo.MachineExternalState;
import com.howei.pojo.MotorProtectorStatus;
import com.howei.service.DataSummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DataSummaryServiceImpl implements DataSummaryService {

    @Autowired
    private DataSummaryMapper mapper;

    @Override
    public List<InverterStatus> getInverterStatusListByMap(Map<String, Object> map) {
        return mapper.getInverterStatusListByMap(map);
    }

    @Override
    public List<MachineExternalState> getMachineExternalStateByMap(Map<String, Object> map) {
        return mapper.getMachineExternalStateByMap(map);
    }

    @Override
    public List<MotorProtectorStatus> getMotorProtectorStatusByMap(Map<String, Object> map) {
        return mapper.getMotorProtectorStatusByMap(map);
    }
}
